-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add author column #129
Conversation
The tests pass, but it seems like
|
The failure of $ make test
pytest -v --cov=. --cov-config=.coveragerc --cov-fail-under=80 --cov-report term-missing
============================= test session starts ==============================
platform darwin -- Python 3.11.0, pytest-7.4.2, pluggy-1.2.0 -- /Users/junyaokabe/workspace/issue-metrics/venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/junyaokabe/workspace/issue-metrics
plugins: cov-4.1.0
collecting ... collected 49 items
...
---------- coverage: platform darwin, python 3.11.0-final-0 ----------
Name Stmts Miss Cover Missing
-----------------------------------------------------------
classes.py 9 0 100%
discussions.py 14 0 100%
issue_metrics.py 142 44 69% 62, 96-114, 129-132, 189, 204-205, 211, 214, 243, 280, 289, 296-304, 313-344, 358
json_writer.py 29 3 90% 77, 123-124
labels.py 58 5 91% 53, 69, 102, 107-108
markdown_writer.py 72 0 100%
time_to_answer.py 25 0 100%
time_to_close.py 33 2 94% 48, 54
time_to_first_response.py 55 1 98% 102
time_to_merge.py 12 0 100%
time_to_ready_for_review.py 11 0 100%
-----------------------------------------------------------
TOTAL 460 55 88%
Required test coverage of 80% reached. Total coverage: 88.04%
============================== 49 passed in 0.26s ==============================
|
This looks great! Thanks for taking the time to add authors into the table. I do think that we need to add a |
Thank you for the thoughtful review and response. I have implemented a feature to decide whether to display the author based on the environment variable It’s tough to find a good solution to the problem of the generated tables becoming long. I don't have a complete solution for this, but what do you think about the following ideas?
However, none of these are complete solutions, and it might be better not to include them in this PR. |
If it is undesirable for the table to be long, it might be good to set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Thanks @Okabe-Junya for your continued contribution! I appreciate you taking the time to make this tool better for those that use it! 🎉 🚀 |
close #128
Proposed Changes
I have added an author column to each issue. As seen in the original issue and this simple sample, it now displays the user who created the issue. In the original issue, there is an
@
, but I decided not to include it as it could potentially trigger numerous notifications due to mentions.Readiness Checklist
Author/Contributor
make lint
and fix any issues that you have introducedmake test
and ensure you have test coverage for the lines you are introducingbug
,documentation
,enhancement
,infrastructure
, orbreaking